/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Act Invoice Inter Group Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A19400 (C-0-T13953-A13954-A19397-A19398-A19400-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getActInvoiceInterGroupCode()
 * @model extendedMetaData="name='ActInvoiceInterGroupCode'"
 * @generated
 */
public enum ActInvoiceInterGroupCode implements Enumerator {
	/**
	 * The '<em><b>CPNDDRGING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CPNDDRGING_VALUE
	 * @generated
	 * @ordered
	 */
	CPNDDRGING(0, "CPNDDRGING", "CPNDDRGING"),

	/**
	 * The '<em><b>CPNDINDING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CPNDINDING_VALUE
	 * @generated
	 * @ordered
	 */
	CPNDINDING(1, "CPNDINDING", "CPNDINDING"),

	/**
	 * The '<em><b>CPNDSUPING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CPNDSUPING_VALUE
	 * @generated
	 * @ordered
	 */
	CPNDSUPING(2, "CPNDSUPING", "CPNDSUPING"),

	/**
	 * The '<em><b>DRUGING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DRUGING_VALUE
	 * @generated
	 * @ordered
	 */
	DRUGING(3, "DRUGING", "DRUGING"),

	/**
	 * The '<em><b>FRAMEING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FRAMEING_VALUE
	 * @generated
	 * @ordered
	 */
	FRAMEING(4, "FRAMEING", "FRAMEING"),

	/**
	 * The '<em><b>LENSING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LENSING_VALUE
	 * @generated
	 * @ordered
	 */
	LENSING(5, "LENSING", "LENSING"),

	/**
	 * The '<em><b>PRDING</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PRDING_VALUE
	 * @generated
	 * @ordered
	 */
	PRDING(6, "PRDING", "PRDING");

	/**
	 * The '<em><b>CPNDDRGING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CPNDDRGING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CPNDDRGING
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CPNDDRGING_VALUE = 0;

	/**
	 * The '<em><b>CPNDINDING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CPNDINDING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CPNDINDING
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CPNDINDING_VALUE = 1;

	/**
	 * The '<em><b>CPNDSUPING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CPNDSUPING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CPNDSUPING
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CPNDSUPING_VALUE = 2;

	/**
	 * The '<em><b>DRUGING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DRUGING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DRUGING
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DRUGING_VALUE = 3;

	/**
	 * The '<em><b>FRAMEING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FRAMEING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FRAMEING
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FRAMEING_VALUE = 4;

	/**
	 * The '<em><b>LENSING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>LENSING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LENSING
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int LENSING_VALUE = 5;

	/**
	 * The '<em><b>PRDING</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PRDING</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PRDING
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PRDING_VALUE = 6;

	/**
	 * An array of all the '<em><b>Act Invoice Inter Group Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ActInvoiceInterGroupCode[] VALUES_ARRAY =
		new ActInvoiceInterGroupCode[] {
			CPNDDRGING,
			CPNDINDING,
			CPNDSUPING,
			DRUGING,
			FRAMEING,
			LENSING,
			PRDING,
		};

	/**
	 * A public read-only list of all the '<em><b>Act Invoice Inter Group Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ActInvoiceInterGroupCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Act Invoice Inter Group Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceInterGroupCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInvoiceInterGroupCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Invoice Inter Group Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceInterGroupCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInvoiceInterGroupCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Invoice Inter Group Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceInterGroupCode get(int value) {
		switch (value) {
			case CPNDDRGING_VALUE: return CPNDDRGING;
			case CPNDINDING_VALUE: return CPNDINDING;
			case CPNDSUPING_VALUE: return CPNDSUPING;
			case DRUGING_VALUE: return DRUGING;
			case FRAMEING_VALUE: return FRAMEING;
			case LENSING_VALUE: return LENSING;
			case PRDING_VALUE: return PRDING;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ActInvoiceInterGroupCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ActInvoiceInterGroupCode
